var path=require('path');
var ExtractTextPlugin=require('extract-text-webpack-plugin');
module.exports={
    entry:'./app-4/vendor.js',
    module:{
        rules:[{
            test:/\.css$/,
            // use:'css-loader'
            use:ExtractTextPlugin.extract({
                use:'css-loader'
            })
        }]
    },
    plugins:[
        new ExtractTextPlugin('./app-4/styles.css'),
    ],
    output:{
        filename:'bundle.js',
        path:path.resolve(__dirname,'app-4/dist')
    }
}

